// @description 特殊处理--费用退还
// @author yurui
// @createDate 2023.6.09
// @version v1.0.0
import { defHttp } from '/@/utils/http/axios';
import qs from 'qs';
import { ApiCommon } from '../common'
const { CUSTOMER_ADMIN_API } = ApiCommon;
enum Api {
    //业务综合办理-费用退还-获取用水项目费用
    GET_COST_RETURN_LIST = '/integrated-business/approval/getCostReturnList',
    //业务综合办理-违约金退还-获取违约金费用
    GET_LATE_FEE_RETURN_LIST = '/integrated-business/approval/getlateFeeReturnList',
    //业务综合办理-费用退还
    COST_RETURN = '/integrated-business/approval/costReturn',
    //业务综合办理-违约金退还
    LATE_FEE_RETURN = '/integrated-business/approval/lateFeeReturn'
}
/**
 * @description: 请求的API地址
 */

//业务综合办理-费用退还-获取用水项目费用
export const getCostReturnList = (params: object) => defHttp.get({ url: CUSTOMER_ADMIN_API + Api.GET_COST_RETURN_LIST, params},
    {
        paramsSerializer : function(params){
            return qs.stringify(params,{indices:false}) }
    });
//业务综合办理-违约金退还-获取违约金费用
export const getlateFeeReturnList = (params: object) => defHttp.get({ url: CUSTOMER_ADMIN_API + Api.GET_LATE_FEE_RETURN_LIST, params },
    {
        paramsSerializer : function(params){
            return qs.stringify(params,{indices:false}) }
    })
 //业务综合办理-费用退还
export const costReturn = (params: object) => defHttp.post({ url: CUSTOMER_ADMIN_API + Api.COST_RETURN, params});
//业务综合办理-违约金退还-获取违约金费用
export const lateFeeReturn = (params: object) => defHttp.post({ url: CUSTOMER_ADMIN_API + Api.LATE_FEE_RETURN, params })









